package com.ruoyi.qsng.domain;

import java.math.BigDecimal;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 退款记录对象 t_refund
 * 
 * @author gk
 * @date 2023-07-18
 */
@Data
@ApiModel("退款记录对象")
public class TRefund extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 金额 */
    @Excel(name = "金额")
    @ApiModelProperty("金额")
    private BigDecimal money;

    /** 状态 0待审核 1成功 2失败 默认0 */
    @Excel(name = "状态", readConverterExp = "0=待审核,1=成功,2=失败")
    @ApiModelProperty("状态 0待审核 1成功 2失败 默认0")
    private Long state;

    /** 退款用户id */
    @ApiModelProperty("核销人id")
    private String userId;



    /** 订单id */
    @Excel(name = "订单编号")
    @ApiModelProperty("订单id")
    private String orderId;

    /** 是否代购 0否1是 */
    @Excel(name = "是否代购", readConverterExp = "0=否,1=是")
    @ApiModelProperty("是否代购0=否,1=是")
    private int isOwn;

    /** 学员姓名 */
    @Excel(name = "学员姓名")
    @ApiModelProperty("学员姓名")
    private String nameWX;

    /** 年龄 */
    @Excel(name = "年龄")
    @ApiModelProperty("年龄")
    private Long ageWX;

    /** 民族 */
    @Excel(name = "民族")
    @ApiModelProperty("民族")
    private String nationWX;

    /** 身份证 */
    @Excel(name = "身份证")
    @ApiModelProperty("身份证")
    private String idCardWX;


    /** 家长姓名 */
    @Excel(name = "家长姓名")
    @ApiModelProperty("家长姓名")
    private String parentNameWX;

    /** 家长电话 */
    @Excel(name = "家长电话")
    @ApiModelProperty("家长电话")
    private String parentPhoneWX;

    /** 学校 */
    @Excel(name = "学校")
    @ApiModelProperty("学校")
    private String schoolWX;

    /** 年级 */
    @Excel(name = "年级")
    @ApiModelProperty("年级")
    private String gradeWX;

    /** 购买节次 */
    @ApiModelProperty("购买节次")
    private Integer purchaseSection;

    /** 订单号 */
    @Excel(name = "订单号")
    @ApiModelProperty("订单号")
    private String outTradeNo;

    @ApiModelProperty("已售名额")
    private Long sold;

    /** 课程名称 */
    @Excel(name = "课程名称")
    @ApiModelProperty("课程名称")
    private String name;


    /** 管理员审核备注 */
    @Excel(name = "管理员审核备注")
    @ApiModelProperty("管理员审核备注")
    private String adminRemark;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setAdminRemark(String adminRemark) 
    {
        this.adminRemark = adminRemark;
    }

    public String getAdminRemark() 
    {
        return adminRemark;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("money", getMoney())
            .append("remark", getRemark())
            .append("state", getState())
            .append("userId", getUserId())
            .append("adminRemark", getAdminRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("orderId", getOrderId())
            .toString();
    }
}
